import { View, Text } from 'react-native'
import React from 'react'
import { Slot } from 'expo-router'

export default function MyTopLayout() {
    return (
        <View>
            <View style={{ backgroundColor: '#666', padding: 10 }}>
                <Text >页头</Text>
            </View>
            
            {/* slot组件称为“插槽”，用于真实要访问的页面内容*/}
            <Slot></Slot>


            <View style={{ backgroundColor: '#EEE', padding: 10 }}>
                <Text >页尾</Text>
            </View>
        </View>
    )
}